
<div class="main_box">
    <div id="mainContent_2">
        <div class="common_toolbar">
			<div class="common_sort_l"></div>
            <div class="common_search_title">
				<div class="common_search_title_l">
			用户搜索结果 >> </div>
				<span class="common_search_sort">
					<form id="sortform" action="<?php echo edp_href_link(PAGENAME_USER_SEARCH_RESULT);?>" method="GET">
						<!--<input type="hidden" name="page" value="<? echo PAGENAME_USER_SEARCH_RESULT; ?>" />-->
						<input type="hidden" name="q" value="<?php echoPageVar($pageVars, "keyword");?>" />
						<input type="hidden" id="sortby" name="sortby" value="<?php echoPageVar($pageVars, "sortby");?>" />
						按照&nbsp;
						<a href="" id="sortcontribution">等级</a> |
						<a href="" id="sortadd_product_count">添加商品数</a> |
						<a href="" id="sortadd_shop_count">添加店铺数</a> |
						<a href="" id="sortreview_count">有效点评数</a>
						排序
						<!--
                                                <a href="" title="升序" order="asc"><img src="<?php echo IMAGE_DIR; ?>arrow4.gif" /></a>
						<a href="" title="降序" order="desc"><img src="<?php echo IMAGE_DIR; ?>arrow5.gif" /></a>
                                                -->
					</form>
				</span>

			</div>
			<div class="common_sort_r"></div>
        </div>

        <div class="search_result">
			<div class="search_result_content">
				<div class="search_result_th">
					<div class="search_result_th_td clearborder">会员昵称</div>
					<!--<div class="search_result_th_td">真实姓名</div>-->
					<div class="search_result_th_td">有效点评</div>
					<div class="search_result_th_td">添加店铺</div>
					<div class="search_result_th_td">发表商品</div>
					<div class="search_result_th_td">鲜花数</div>
					<div class="search_result_th_td">等级</div>
                    <div class="search_result_th_td">加为好友</div>
				</div>
				<?php
			if( isset( $pageVars['dbRes'] ) && count($pageVars['dbRes']) > 0 ) {

				foreach( $pageVars['dbRes'] as $item ) {
		?>
						<div class="search_result_tr">
							<div class="search_result_td clearborder"><a href="<?php echo edp_href_link(PAGENAME_USER_INFO, 'uid='.$item['id']);?>"><?php echo $item['nick'];?></a></div>
							<div class="search_result_td"><?php echo $item['review_count'];?></div>
							<div class="search_result_td"><?php echo $item['add_shop_count'];?></div>
							<div class="search_result_td"><?php echo $item['add_product_count'];?></div>
							<div class="search_result_td"><?php echo $item['flower_count'];?></div>
                            <div class="search_result_td"><img src="<?php echo STATIC_DOMAIN.'image/'.getUserRankClass($item['contribution']).'.gif';?>"/></div>
				<div class="search_result_td">
                                        <?php
                                        if( !edp_isset_session('userid')||edp_getsession('userid')!=$item['id'] ) {
                                        ?>
					<td><a name="<?php echo $item['id'].'_'.$item['nick_plain'];?>" class="add_friend" href="###">加为好友</a></td>
                                        <?php
                                            } 
                                        ?>
                                        </div>						
                       </div>
				<?php
				}
				//page bar
				echo $pageVars['pagebar'];
			}
			else {
				echo "<br /><br /><center>没有搜索到相关结果</center><br />";
			}
		?>
			</div>
		</div>
    </div>
	<div id="sidebar_right">
		<div class="main_right_top">
			<div class="main_right_top_1"></div>
			<form method="GET" action="<?php echo edp_href_link(PAGENAME_USER_SEARCH_RESULT);?>" id="user_search" name="user_search" >
				<!--<input type="hidden" name="page" value="user_search_result" />-->
				<input type="hidden" id="user_search_keyword_hidden" value="<?php echoPageVar($pageVars, 'keyword');?>" />
				<!--<div class="main_right_top_2">
					<input type="radio" name="searchby" value="email" checked="checked" />
					Email&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
					<input type="radio" name="searchby" value="username" />会员名
				</div>-->
				<div class="main_right_top_3">
					<input type="text" name="q" id="user_search_keyword" value="" />
				</div>
				<div class="main_right_top_4">
                    <input type="submit" value="查询" />
				</div>
			</form>
		</div>
		<div class="main_right_bottom">
			<div class="main_right_bottom_1">邀请朋友加入花开里，赚取贡献值 <a href="http://www.huakaili.com/help/?subpage=301">贡献值有什么用</a></div>
			<form action="<?php echo edp_href_link(PAGENAME_INVITE_FRIEND,'redir='.edp_href_link(PAGENAME_USER_SEARCH_RESULT));?>" method="post" id="friend_invite_form">
				<input type="hidden" name="action" value="invite_friend"/>
				<div class="main_right_bottom_2">好友的E-mail地址：</div>
				<div class="main_right_bottom_3"><input type="text" id="friend_email" name="friend_email"/></div>
				<div class="main_right_bottom_2">请输入图中验证码:</div>				
				<div class="main_right_bottom_4">
					<input type="text" id="vcode" name="vcode"/>
					<img id="vimg" src="<?php echo edp_href_link(PAGENAME_VCODE,'tiny=1'); ?>" />
					<a id="virefresh" href="#">看不清？</a>
				</div>
				<div class="main_right_bottom_5"><input type="submit" name="friend_invite_submit" value="邀请" /></div>
			</form>
		</div>
	</div>

	<div id="PopBox" style="display:none;cursor:default;" class="popup"></div>
